package com.lwbldy.modules.student.service.impl;

import com.lwbldy.modules.student.domain.SqlQuery;
import com.lwbldy.modules.student.mapper.SqlQueryDao;
import com.lwbldy.modules.student.service.SqlQueryService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

/**
 * 查询配置 service 实现
 * @author lwb
 * @email lwbldy@163.com
 * @date 2022-06-22 09:56:13
 */
@Service("sqlQueryService")
public class SqlQueryServiceImpl implements SqlQueryService {

    @Autowired
    SqlQueryDao sqlQueryDao;

    @Override
    public int save(SqlQuery t) {
        return sqlQueryDao.save(t);
    }

    @Override
    public int saveBatch(List<SqlQuery> list) {
        return sqlQueryDao.saveBatch(list);
    }

    @Override
    public int update(SqlQuery t) {
        return sqlQueryDao.update(t);
    }

    @Override
    public int delete(Object id) {
        return sqlQueryDao.delete(id);
    }

    @Override
    public int deleteBatch(Object[] ids) {
        return sqlQueryDao.deleteBatch(ids);
    }

    @Override
    public SqlQuery queryObject(Object id) {
        return sqlQueryDao.queryObject(id);
    }

    @Override
    public List<SqlQuery> queryList(Map<String, Object> map) {
        return sqlQueryDao.queryList(map);
    }

    @Override
    public int queryTotalByMap(Map<String, Object> map) {
        return sqlQueryDao.queryTotalByMap(map);
    }

    @Override
    public int queryTotal() {
        return sqlQueryDao.queryTotal();
    }

    @Override
    public List<Map<String, Object>> queryBySql(String sql) {

        return sqlQueryDao.queryBySql(sql);
    }

}
